<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>日志</title>
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/dining.css}" />
</head>
<body>

<!-- 引入公共头部 -->
<header th:replace="common/top"></header>

<div id="BackLink">
    <a th:href="@{/catalog/index}">Return to Main Menu</a>
</div>

<div id="Catalog">
    <h2>日志</h2>
    <table>
        <tr>
            <th>Time</th>
            <th>Item ID</th>
            <th>Item Name</th>
            <th>Activity</th>
        </tr>
        <tr th:each="log : ${logList}">
            <td th:text="${log.date}"></td>
            <td th:text="${log.info}"></td>
            <td th:text="${log.name}"></td>
            <td>
                <span th:if="${log.mark == 0}">浏览</span>
                <span th:if="${log.mark == 1}">添加到购物车</span>
                <span th:if="${log.mark == 2}">提交订单</span>
            </td>
        </tr>
    </table>
</div>
<footer th:replace="common/bottom"></footer>
</body>
</html>